package com.wf.client;

import com.wf.pojo.Goods;
import lombok.Data;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;


@FeignClient("goodsserver")
public interface GoodsClient {
    @GetMapping("/goods/{goodsId}")
    Goods getById(@PathVariable Long goodsId);


    @PutMapping("/update")
    String update(@RequestBody Goods goods);
}
